package chapter7.io;

import java.io.File;

/**
 * Created by qpx on 2018/5/14.
 */
public class FileTest {

    public static void main(String[] args) {
        File file = new File("D://abc//abc//abc//abc");
        file.mkdirs();
       // getFile(file);

    }
    public static void getFile(File file){
        if(file.isFile()){
            return;
        }
        File[] files = file.listFiles();
        if (files==null){
            return;
        }
        for (File file1:files){
            System.out.println(file1.getAbsolutePath());
            getFile(file1);
        }
    }
}
